package com.javase.多线程.线程的创建;

import java.util.concurrent.TimeUnit;

/**
 * @Auther: liyanhao
 * @Description: --
 * @Date: 2022/5/14 15:40
 * @Version: v1.0
 */
public class MyThread extends Thread {
    @Override
    public void run() {
        try {
            TimeUnit.SECONDS.sleep(5);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("MyThread.run()");
    }
}

